@import "base.css";
body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}
.ant-input-affix-wrapper-focused {
  box-shadow: 0 0 0 1px var(--primary-color) !important;
}
.ant-menu-item-selected {
  color: black !important;
  background: var(--primary-color) !important;
}
.ant-spin-dot-item {
  background-color: var(--primary-color) !important;
}
:root {
  --black: #000;
  --white: #fff;
  --gray-1: #f7f7f7;
  --gray-2: #eee;
  --gray-3: #ddd;
  --gray-4: #ccc;
  --gray-5: #bbb;
  --gray-6: #aaa;
  --gray-7: #999;
  --gray-8: #888;
  --gray-9: #777;
  --gray-10: #666;
  --purple-light: #c7a8ff;
  --purple-dark: #9166e2;
  --green-light: #a5d6a7;
  --green-dark: #5cb85c;
  --red-light: #f8d7da;
  --red-dark: #d9534f;
  --yellow-light: #fff0bd;
  --yellow-dark: #f0ad4e;
  --purple: var(--purple-dark);
}

p {
  margin: 1em 0;
}



/* Basic editor styles */
.c-tiptap .tiptap {
  :first-child {
    margin-top: 0;
  }

  /* List styles */
  ul,
  ol {
    padding: 0 1rem;
    margin: 1.25rem 1rem 1.25rem 0.4rem;

    li p {
      margin-top: 0.25em;
      margin-bottom: 0.25em;
    }
  }

  /* Heading styles */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.1;
    margin-top: 20px;
    text-wrap: pretty;
  }

  h1,
  h2 {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  h4,
  h5,
  h6 {
    font-size: 1rem;
  }

  /* Code and preformatted text styles */
  code {
    background-color: var(--purple-light);
    border-radius: 0.4rem;
    color: var(--black);
    font-size: 0.85rem;
    padding: 0.25em 0.3em;
  }

  pre {
    background: var(--black);
    border-radius: 0.5rem;
    color: var(--white);
    font-family: 'JetBrainsMono', monospace;
    margin: 1.5rem 0;
    padding: 0.75rem 1rem;

    code {
      background: none;
      color: inherit;
      font-size: 0.8rem;
      padding: 0;
    }

    /* Code styling */
    .hljs-comment,
    .hljs-quote {
      color: #616161;
    }

    .hljs-variable,
    .hljs-template-variable,
    .hljs-attribute,
    .hljs-tag,
    .hljs-name,
    .hljs-regexp,
    .hljs-link,
    .hljs-name,
    .hljs-selector-id,
    .hljs-selector-class {
      color: #f98181;
    }

    .hljs-number,
    .hljs-meta,
    .hljs-built_in,
    .hljs-builtin-name,
    .hljs-literal,
    .hljs-type,
    .hljs-params {
      color: #fbbc88;
    }

    .hljs-string,
    .hljs-symbol,
    .hljs-bullet {
      color: #b9f18d;
    }

    .hljs-title,
    .hljs-section {
      color: #faf594;
    }

    .hljs-keyword,
    .hljs-selector-tag {
      color: #70cff8;
    }

    .hljs-emphasis {
      font-style: italic;
    }

    .hljs-strong {
      font-weight: 700;
    }
  }

  blockquote {
    border-left: 3px solid var(--gray-3);
    margin: 1.5rem 0;
    padding-left: 1rem;
  }

  hr {
    border: none;
    border-top: 1px solid var(--gray-2);
    margin: 2rem 0;
  }
  img {
    display: block;
    height: auto;
    width: 300px;
    margin: 1.5rem 0;
    max-width: 100%;

    &.ProseMirror-selectednode {
      outline: 3px solid var(--purple);
    }
  }
  /* Task list specific styles */
  ul[data-type="taskList"] {
    list-style: none;
    margin-left: 0;
    padding: 0;

    li {
      align-items: flex-start;
      display: flex;

      > label {
        flex: 0 0 auto;
        margin-right: 0.5rem;
        user-select: none;
      }

      > div {
        flex: 1 1 auto;
      }
    }

    input[type="checkbox"] {
      cursor: pointer;
    }

    ul[data-type="taskList"] {
      margin: 0;
    }
  }
  mark {
    background-color: #8ce99a;
    border-radius: 0.4rem;
    box-decoration-break: clone;
    padding: 0.1rem 0.3rem;
  }
}

.tiptap:focus-visible {
  outline: -webkit-focus-ring-color auto 0 !important;
}

.ProseMirror {
  z-index: 0;
  padding: 2rem 3rem 1rem 3rem;
  caret-color: #000;
  outline-width: 0;
}

.ProseMirror-focused {
  outline: none;
}

blockquote {
  border-left: 3px solid #000000;
  margin: 1.5rem 0;
  padding-left: 1rem;
}

